/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Clases;

/**
 *
 * @author angelo
 */
public class Responsable {

    private int id_Responsable;
    private String nombre, apodo, email, pathFoto;

    public Responsable() {
    }

    public Responsable(int id, String nombre, String apodo, String email, String pathFoto) {
        this.id_Responsable = id;
        this.nombre = nombre;
        this.apodo = apodo;
        this.email = email;
        this.pathFoto = pathFoto;
    }

    public int getId_Responsable() {
        return id_Responsable;
    }

    public void setId_Responsable(int id_Responsable) {
        this.id_Responsable = id_Responsable;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getApodo() {
        return apodo;
    }

    public void setApodo(String apodo) {
        this.apodo = apodo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPathFoto() {
        return pathFoto;
    }

    public void setPathFoto(String pathFoto) {
        this.pathFoto = pathFoto;
    }

    @Override
    public boolean equals(Object o) {
        boolean flag;
        if (o instanceof Responsable) {
            Responsable p = (Responsable) o;
            if (this.id_Responsable == p.id_Responsable) {
                flag = true;
            } else {
                flag = false;
            }
        } else {
            flag = false;
        }
        return flag;
    }

    @Override
    public int hashCode() {
        return this.id_Responsable * this.nombre.length();
    }
}
